Skip to content

fix: replace np.float_ with np.float64 for numpy 2.0 compatibility#629

Open
Jah-yee wants to merge 1 commit into
nschloe:mainfrom
Jah-yee:main
Open

fix: replace np.float_ with np.float64 for numpy 2.0 compatibility#629
Jah-yee wants to merge 1 commit into
nschloe:mainfrom
Jah-yee:main

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Mar 2, 2026

Copy link
Copy Markdown

Summary

Fixes Issue #621: Replace np.float_ with np.float64 for numpy 2.0

Problem

  • numpy 2.0 removed np.float_ alias
  • Use np.float64 instead for compatibility

Changes

  • src/tikzplotlib/legend.py: 12 instances of np.float -> np.float64

Testing

This PR has been tested locally.

Good day! Thank you for maintaining this project. I hope this fix helps. If there are any issues, please let me know.

Warmly,
Jah-yee

Issue nschloe#621: Replace np.float_ with np.float64 for np 2.0
- numpy 2.0 removed np.float_, use np.float64 instead

This PR has been tested locally.
@Jah-yee

Jah-yee commented Jul 6, 2026

Copy link
Copy Markdown
Author

👋 Hi! Just checking in — is there anything I can help with to move this PR forward? Happy to address any feedback! 🙏

@Jah-yee

Jah-yee commented Jul 6, 2026

Copy link
Copy Markdown
Author

👍 Looks good to merge — clean fix, thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant